(function() {

    var
    $u = juliet.using({
        number : 'juliet.core.number-0.1',
        string : 'juliet.core.string-0.1'
    });

    var dateObject = {

        format : function(pattern, date) {
            return $u('string').format(
                pattern, {
                    day : date.getDate(),
                    month : $u('number').addLeadingZero(date.getMonth() + 1),
                    year : date.getFullYear(),
                    hours : date.getHours(),
                    minutes : $u('number').addLeadingZero(date.getMinutes()),
                    seconds : $u('number').addLeadingZero(date.getSeconds())
                }
            );
        }

    };

    juliet.registerModule('juliet.core', 'date-0.1', dateObject);

})();
